$(document).ready( function() {
	var timeout = null;
	var initialHeight = $(this).height();
	$("#edit_static_page").click( function () {
		var dataString = "controller=" + $('#eip_editor_controller').val() + "&action=" + $('#eip_editor_action').val(); 
		window.location = eip_base_url + "EIP/Ide/Static_Page/Edit?" + dataString;
	});
	$("#edit_toolbar").hover (
		function() {
			if(timeout) {
				clearTimeout(timeout);
				timeout = null;
			}
			$(this).animate({height: '13px'}, 'slow');
		},
		function() {
			var menuBar = $(this);
			timeout = setTimeout( function() {
				timeout = null;
				menuBar.animate({height:'1px'},'fast');
			});
		}
	);
	$("#edit_toolbar").animate({height:'1px'},'slow');
	
});